package com.app.base.service.core.organization.service;

import com.alibaba.fastjson.JSONObject;
import com.app.base.service.core.organization.entity.Organization;
import com.app.base.utlis.result.Result;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletRequest;

/**
 *  服务类
 * @author yuhag
 * @since 2022-05-08
 */
public interface OrganizationService extends IService<Organization> {

    Result saveOrg(HttpServletRequest request, Organization organization);

    Result organizationChart(String userId);

    Result structure(HttpServletRequest request);

    Result editOrganization(JSONObject json, HttpServletRequest request);

    Result deptList(HttpServletRequest request);

    Result deleteOrganization(Integer grade, String id);

    Result selEmp(Integer grade, String id);
}
